package org.jdsm.flow.core.simpleblog;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: mikom
 * Date: 11/5/12
 * Time: 11:42 AM
 */
public interface IBlogService {
    IPost findPost(IPost post);

    void saveOrUpdate(IPost post);

    void delete(IPost post);
    /**
     * Find latest post from DB. If count record similar 0 or less this parameter will be changed to 10
     * @param count count records which will be return
     * @return list of IPost records or empty list
     */
    List<IPost> findLatestPosts(int count);
}
